import 'package:flutter_architecture/src/features/weather/domain/weather/weather_data.dart';

import 'forecast.dart';

/// Derived model class used in the UI
class ForecastData {
  final List<WeatherData> list;

  const ForecastData(this.list);

  factory ForecastData.from(Forecast forecast) {
    return ForecastData(
        forecast.list.map((item) => WeatherData.from(item)).toList());
  }
}
